package br.com.lpoint.job.execute;

import java.util.Map;

import javax.ejb.EJB;
import javax.ejb.Local;
import javax.ejb.Stateless;

import br.com.document.job.JobDocument;
import br.com.lpoint.job.wrapper.JobWrapper;

@Stateless
@Local(JobProcess.class)
public class JobProcessImpl implements JobProcess {
	
	@EJB(beanInterface=JobWrapper.class)
	private JobWrapper jobWrapper = null; 

	@Override
	public void processaJob(JobDocument job, Map<String, Object> params) {
		try{			
			jobWrapper.executeJob(job, params);
		}catch(Exception ex){
			ex.printStackTrace();
		}
	}

}
